package com.lb.design.pattern.observer.gper;

/**
 * @author lb
 * @Title: Gper
 * @Description: 提问者、发布者、被观察者
 * @date 2019/03/19  18:34
 */
public class Gper {
    private final Question question;
    public Gper(Question question) {
        this.question = question;
        System.out.println(question.getUserName()+"提了一个问题:"+question.getContent());
    }
    public Question getQuestion() {
        return question;
    }

}
